<?php
session_start();

require_once("database.include.php");

	$userName = $_GET['userName'];
			
	$sql = ' SELECT `public_key` '
		    . ' FROM `user` '
			. ' WHERE `user`.name = ' . "'" . $userName . "'";
				
    foreach ($conn->query($sql) as $row) {
    	print $row['public_key'];
    }

?>